package com.langyiquan.mapper.custom;

import com.langyiquan.vo.ItemCommentVO;
import com.langyiquan.vo.CommonItemsVO;
import com.langyiquan.vo.ItemBaseInfoVO;
import com.langyiquan.vo.ShopcartVO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

public interface ItemCustomMapper {

    public List<ItemCommentVO> queryItemComments(@Param("paramsMap") Map<String, Object> map);

    public List<CommonItemsVO> searchItems(@Param("paramsMap") Map<String, Object> map);

    public ItemBaseInfoVO queryItemInfo(@Param("paramsMap") Map<String, Object> map);

    public List<CommonItemsVO> getRecommendItems();

    public List<ShopcartVO> queryItemsBySpecIds(@Param("paramsList") List specList);

    public int decreaseItemSpecStock(@Param("specId") String specId, @Param("buyCount") Integer buyCount);
}